package com.steven.web.po;

import com.fasterxml.jackson.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


@Data
@JsonIgnoreProperties(value = {"jIgnore1","jIgnore2"})
//@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.ANY, getterVisibility=JsonAutoDetect.Visibility.NONE,
//        setterVisibility=JsonAutoDetect.Visibility.NONE, creatorVisibility=JsonAutoDetect.Visibility.NONE)
public class JsonAnnotationPo implements Serializable {
    @JsonProperty("name")
    private String jName;
    private String jAddress;
    private int age;
    //    @JsonIgnore
    private String jIgnore1;
    private String jIgnore2;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String v_null;
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    private Date jBirthday;
}


